<template>
  <div class="views-form-create-demo">
    <div class="left-sider">
      <MyIcon icon="Edit" class="my-icon" interaction active />
      <MyIcon icon="Position" class="my-icon" interaction disabled />
      <MyIcon icon="Setting" class="my-icon" interaction disabled />
      <MyIcon icon="Operation" class="my-icon" interaction disabled />
    </div>
    <div class="left-box">
      <ComponentsGroups />
    </div>
    <div class="main-box">
      <TopTools />
      <ControlPanelBox />
    </div>
    <div class="right-box">
      <ConfigGroups />
    </div>
  </div>
</template>

<script lang="ts">
export default defineComponent({ name: 'ViewsFormCreateDemo' })
</script>
<script setup lang="ts">
import { defineComponent, onMounted } from 'vue'

import MyIcon from '@/components/MyIcon.vue'
import ComponentsGroups from './components/ComponentsGroups.vue'
import ConfigGroups from './components/ConfigGroups.vue'
import ControlPanelBox from './components/ControlPanelBox.vue'
import TopTools from './components/TopTools.vue'

onMounted(() => {})
</script>

<style lang="scss" scoped>
@import './styles.scss';
.views-form-create-demo {
  display: flex;
  border-top: 1px solid $base-border-color;
  min-width: 850px;
  height: 100%;
  .left-sider {
    background-color: $d-bg-color;
    border-right: 1px solid $base-border-color;
    width: 42px;
    padding: 15px;
    display: flex;
    flex-direction: column; // 主轴为纵轴
    align-items: center; // 沿主轴方向居中
    .my-icon {
      color: rgba(0, 0, 0, 0.6);
      font-size: 18px;
      margin-bottom: 10px;
    }
  }
  .left-box {
    background-color: $d-bg-color;
    border-right: 1px solid $base-border-color;
    width: 250px;
  }
  .main-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #e7ebef;
  }
  .right-box {
    background-color: $d-bg-color;
    border-left: 1px solid $base-border-color;
    width: 250px;
  }
}
</style>
